using System;
using System.Reflection;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace PPCHelpReader
{
	/// <summary>
	/// Summary description for About.
	/// </summary>
	public class About : System.Windows.Forms.Form
	{
        private System.Windows.Forms.Label lbAppTitle;
		private System.Windows.Forms.TextBox lbThanks;
        private PictureBox pictureBox1;
        private LinkLabel linkLabel1;
		private System.Windows.Forms.Label lbVersion;

        /// <summary>
        /// Initializes a new instance of the <see cref="About"/> class.
        /// </summary>
		public About()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();			
			
			lbThanks.Text="www.OpenNetCF.org Library for the HTMLViewer Code\r\n\r\nKlaus Weisser for the HtmlHelp Library - See www.CodeProject.com\r\n\r\nJed Wing <jedwin@ugcs.caltech.edu> for the orginial CHMLib 'c' code on which some of this work is based.";
			Assembly execAssembly= Assembly.GetExecutingAssembly();
            lbVersion.Text = string.Format("Version {0}\r\nDeveloped by Peter Tewkesbury", execAssembly.GetName().Version.ToString(3));           			
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.lbAppTitle = new System.Windows.Forms.Label();
            this.lbVersion = new System.Windows.Forms.Label();
            this.lbThanks = new System.Windows.Forms.TextBox();
            this.pictureBox1 = new System.Windows.Forms.PictureBox();
            this.linkLabel1 = new System.Windows.Forms.LinkLabel();
            this.SuspendLayout();
            // 
            // lbAppTitle
            // 
            this.lbAppTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.lbAppTitle.Font = new System.Drawing.Font("Verdana", 12F, System.Drawing.FontStyle.Bold);
            this.lbAppTitle.Location = new System.Drawing.Point(3, 3);
            this.lbAppTitle.Name = "lbAppTitle";
            this.lbAppTitle.Size = new System.Drawing.Size(197, 32);
            this.lbAppTitle.Text = "PPCHelpReader";
            // 
            // lbVersion
            // 
            this.lbVersion.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.lbVersion.Location = new System.Drawing.Point(3, 35);
            this.lbVersion.Name = "lbVersion";
            this.lbVersion.Size = new System.Drawing.Size(235, 29);
            this.lbVersion.Text = "Version 3.1.0.0\r\nDeveloped by Peter Tewkesbury\r\n";
            // 
            // lbThanks
            // 
            this.lbThanks.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.lbThanks.BackColor = System.Drawing.Color.White;
            this.lbThanks.Location = new System.Drawing.Point(3, 87);
            this.lbThanks.Multiline = true;
            this.lbThanks.Name = "lbThanks";
            this.lbThanks.ReadOnly = true;
            this.lbThanks.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
            this.lbThanks.Size = new System.Drawing.Size(235, 196);
            this.lbThanks.TabIndex = 0;
            this.lbThanks.Text = "textBox1";
            // 
            // pictureBox1
            // 
            this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.pictureBox1.Location = new System.Drawing.Point(206, 3);
            this.pictureBox1.Name = "pictureBox1";
            this.pictureBox1.Size = new System.Drawing.Size(32, 32);
            // 
            // linkLabel1
            // 
            this.linkLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.linkLabel1.Location = new System.Drawing.Point(3, 64);
            this.linkLabel1.Name = "linkLabel1";
            this.linkLabel1.Size = new System.Drawing.Size(235, 20);
            this.linkLabel1.TabIndex = 3;
            this.linkLabel1.Text = "http://www.codeplex.com/helpreader";
            this.linkLabel1.Click += new System.EventHandler(this.linkLabel1_Click);
            // 
            // About
            // 
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
            this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
            this.ClientSize = new System.Drawing.Size(241, 286);
            this.Controls.Add(this.linkLabel1);
            this.Controls.Add(this.pictureBox1);
            this.Controls.Add(this.lbThanks);
            this.Controls.Add(this.lbVersion);
            this.Controls.Add(this.lbAppTitle);
            this.Name = "About";
            this.Text = "About";
            this.ResumeLayout(false);

		}
		#endregion

        private void linkLabel1_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start(linkLabel1.Text, "");
        }
	}
}